<header>
	<h3><?php echo lang('config_manage') ?> <span>- <?php echo lang('config_manage_desc') ?></span></h3>
</header>
<section class="welly">
	<form id="create_product" method="post"	action="" class="form-horizontal">
		<input type="hidden" name="submit" value="1"/>
		<ul class="nav nav-tabs tab_styled_light">
			<li class="active"><a href="#tab1" data-toggle="tab"><?php echo lang('config_general') ?></a></li>
			<li><a href="#tab2" data-toggle="tab"><?php echo lang('config_image') ?></a></li>
			<li><a href="#tab3" data-toggle="tab"><?php echo lang('config_upload') ?></a></li>
			<li><a href="#tab4" data-toggle="tab"><?php echo lang('config_link') ?></a></li>
			<li><a href="#tab5" data-toggle="tab"><?php echo lang('config_wm') ?></a></li>
		</ul>
		<div class="tab-content tab_content_light">
			<div id="tab1" class="tab-pane active">
				<div class="control-group">
					<label class="control-label"><?php echo lang('site_title') ?></label>
					<div class="controls">
						<input type="text" name="site_title" class="input-large"/>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><?php echo lang('meta_desc') ?></label>
					<div class="controls">
						<input type="text" name="meta_desc" class="input-large"/>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><?php echo lang('social_page') ?></label>
					<div class="controls">
						<input type="text" name="social_page" class="input-large"/>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><?php echo lang('fb_image') ?></label>
					<div class="controls">
						<input type="text" name="fb_image" class="input-large"/>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><?php echo lang('image_upload_path') ?></label>
					<div class="controls">
						<input type="text" name="image_upload_path" class="input-large"/>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><?php echo lang('counter_update_freq') ?></label>
					<div class="controls">
						<input type="text" name="counter_update_freq" class="input-small"/>
						<?php echo lang('times') ?>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><?php echo lang('vote_pass') ?></label>
					<div class="controls">
						<input type="text" name="vote_pass" class="input-small"/>
						<?php echo lang('times') ?>
					</div>
				</div>

				<div class="control-group">
					<label class="control-label"><?php echo lang('time_old') ?></label>
					<div class="controls">
						<input type="text" name="time_old" class="input-small"/>
						<?php echo lang('hours') ?>
					</div>
				</div>

			</div>
			<div id="tab2" class="tab-pane fade">
				<div class="control-group">
					<label class="control-label"><?php echo lang('image_max_size') ?></label>
					<div class="controls">
						<input type="text" name="image_max_size" class="input-small"/>&nbsp;KB
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><?php echo lang('image_max_width') ?></label>
					<div class="controls">
						<input type="text" name="image_max_width" class="input-small"/>&nbsp;px
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><?php echo lang('image_max_height') ?></label>
					<div class="controls">
						<input type="text" name="image_max_height" class="input-small"/>&nbsp;px
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><?php echo lang('image_width') ?></label>
					<div class="controls">
						<input type="text" name="image_width" class="input-small"/>&nbsp;px
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><?php echo lang('image_height') ?></label>
					<div class="controls">
						<input type="text" name="image_height" class="input-small"/>&nbsp;px
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><?php echo lang('thumb_width') ?></label>
					<div class="controls">
						<input type="text" name="thumb_width" class="input-small"/>&nbsp;px
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><?php echo lang('thumb_height') ?></label>
					<div class="controls">
						<input type="text" name="thumb_height" class="input-small"/>&nbsp;px
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><?php echo lang('thumb2_width') ?></label>
					<div class="controls">
						<input type="text" name="thumb2_width" class="input-small"/>&nbsp;px
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><?php echo lang('thumb2_height') ?></label>
					<div class="controls">
						<input type="text" name="thumb2_height" class="input-small"/>&nbsp;px
					</div>
				</div>
			</div>
			<div id="tab3" class="tab-pane fade">
				<a id="modal_toggle" data-toggle="modal" href="#modal" style="display: none"></a>
				<a class="btn btn-mini btn-success data_create"><?php echo lang("limit_create") ?></a>
				<table id="table" cellpadding="0" cellspacing="0" border="0" class="display" >
					<thead>
						<tr>
							<th><?php echo lang('likes') ?></th>
							<th><?php echo lang('images_per_day') ?></th>
							<th><?php echo lang('videos_per_day') ?></th>
							<th>&nbsp;</th>
						</tr>
					</thead>
					<tbody>
					</tbody>
				</table>
				<div class="dataTables_paginate paging_full_numbers" id="table_paginate">
					<a class="first paginate_button" id="table_first">First</a>
					<a class="previous paginate_button" id="table_previous">Previous</a>
					<span>
					</span>
					<a class="next paginate_button" id="table_next">Next</a>
					<a class="last paginate_button" id="table_last">Last</a>
				</div>
			</div>
			<div id="tab4" class="tab-pane fade">
				<div class="control-group">
					<label class="control-label">Liên hệ</label>
					<div class="controls">
						<input type="text" class="input-xlarge" name="link_contact">
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">FAQ</label>
					<div class="controls">
						<input type="text" class="input-xlarge" name="link_faq">
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">Điều khoản</label>
					<div class="controls">
						<input type="text" class="input-xlarge" name="link_terms">
					</div>
				</div>
				<div class="control-group">
					<label class="control-label" >Giới thiệu</label>
					<div class="controls">
						<input type="text" class="input-xlarge" name="link_about">
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">Facebook</label>
					<div class="controls">
						<input type="text" class="input-xlarge" name="link_facebook">
					</div>
				</div>
			</div>
			<div id="tab5" class="tab-pane fade">
				<div class="control-group">
					<label class="control-label"><?= lang('wm_overlay_path') ?></label>
					<div class="controls">
						<img style="width: 150px; margin-bottom: 5px" id="wm_overlay_path"  src="<?= $data['wm_overlay_path']!=''?  image_url($data['wm_overlay_path']):$url_styles . 'images/no_image.png' ?>"/>
						<input type="hidden" name="overlay_id" />
					</div>
					<div class="controls">
						<input id="selectfile" type="button" class="btn" value="<?= lang('select_file') ?>"/>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><?= lang('wm_opacity') ?></label>
					<div class="controls">
						<input type="text" class="input-xlarge" name="wm_opacity">
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><?= lang('wm_x_transp') ?></label>
					<div class="controls">
						<input type="text" class="input-xlarge" name="wm_x_transp">
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><?= lang('wm_y_transp') ?></label>
					<div class="controls">
						<input type="text" class="input-xlarge" name="wm_y_transp">
					</div>
				</div>
			</div>
		</div>
		<hr>
		<div>
			<input type="submit" class="btn btn-success" />
			<a class="btn" href="<?php echo url_create('admin', 'config') ?>"><?php echo lang('cancel') ?></a>
		</div>
	</form>
</section>